Repository navigation
fix(mcpx): generated launchers type check now that run checks by default - #11342
Conversation
run defaults script.check on (d3772a5, #1868 point 4), which turned four e2e tests red: - The @entry fill emitted `"" ? mod[""] : mod.default`, a ternary on a string literal that deno check rejects (TS2873/TS2872). The export is known when the launcher is built, so pick it in Go. - Custom launchers lacked the mcpx-globals.d.ts reference the built-in launcher carries, so any script using `log` failed with TS2304. Prepend the same directive to every expanded custom launcher. - TestScriptTypecheckOnRefusesATypeError assumed run was off by default; it now asks for off explicitly. - The concurrent-launcher test uses a deliberately headerless launcher, which cannot type check; it passes --script-check off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Before: since
mcpx runstarted type checking by default (d3772a5, #1868 point 4), four mcpx e2e tests fail on main: the generated@entryblock doesn't type check (TS2873 on"" ? …), custom launchers can't see the ambient globals (Cannot find name 'log'), and one test still assumes checking is off forrun.After: generated and custom launchers type check, so a default
mcpx runwith a custom launcher works, and the four tests pass.How:
expandCustompicks the export in Go instead of emitting a ternary on a string literal./// <reference path="./mcpx-globals.d.ts" />the built-in launcher has.TestScriptTypecheckOnRefusesATypeErrorasks foroffexplicitly.TestConcurrentRunsOfOneScriptKeepTheirOwnLauncheruses a deliberately headerless launcher, so it passes--script-check off.Testing: the four e2e tests pass locally with deno 2.9.8;
go test ./internal/runner ./internal/launcherpasses.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.